﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace YesBlog.Infrastructure.Context
{
    public interface IUnitOfWork
    {
        void BeginTransaction();
        void RegisterAdd<TEntity>(TEntity entity) where TEntity : class;
        void RegisterUpdate<TEntity>(TEntity entity) where TEntity : class;
        void RegisterDelete<TEntity>(TEntity entity) where TEntity : class;
        bool Commit();
        void Rollback();
    }
}
